package org.locker.domain.bo;

import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.locker.domain.WechatMpUser;

/**
 * 系统参数业务对象 lk_wechat_mp_user
 *
 * @author winnie
 * @date 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WechatMpUser.class, reverseConvertGenerate = false)
public class WechatMpUserBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * AppID
     */
    @NotBlank(message = "AppID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * openId
     */
    @NotBlank(message = "openId不能为空", groups = { AddGroup.class, EditGroup.class })
    private String openId;

    /**
     * 开放平台关联ID
     */
    @NotBlank(message = "开放平台关联ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unionId;

    /**
     * 是否关注公众号0否1是
     */
    @NotNull(message = "是否关注公众号0否1是不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isSubscribe;


}
